3.2.66 \(\int \frac {1}{x^4 (a+b x)} \, dx\)

Optimal. Leaf size=56 \[ -\frac {b^3 \log (x)}{a^4}+\frac {b^3 \log (a+b x)}{a^4}-\frac {b^2}{a^3 x}+\frac {b}{2 a^2 x^2}-\frac {1}{3 a x^3} \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {44} \begin {gather*} -\frac {b^2}{a^3 x}-\frac {b^3 \log (x)}{a^4}+\frac {b^3 \log (a+b x)}{a^4}+\frac {b}{2 a^2 x^2}-\frac {1}{3 a x^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(x^4*(a + b*x)),x]

[Out]

-1/(3*a*x^3) + b/(2*a^2*x^2) - b^2/(a^3*x) - (b^3*Log[x])/a^4 + (b^3*Log[a + b*x])/a^4

Rule 44

Int[((a_) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*
x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && L
tQ[m + n + 2, 0])

Rubi steps

\begin {align*} \int \frac {1}{x^4 (a+b x)} \, dx &=\int \left (\frac {1}{a x^4}-\frac {b}{a^2 x^3}+\frac {b^2}{a^3 x^2}-\frac {b^3}{a^4 x}+\frac {b^4}{a^4 (a+b x)}\right ) \, dx\\ &=-\frac {1}{3 a x^3}+\frac {b}{2 a^2 x^2}-\frac {b^2}{a^3 x}-\frac {b^3 \log (x)}{a^4}+\frac {b^3 \log (a+b x)}{a^4}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 56, normalized size = 1.00 \begin {gather*} -\frac {b^3 \log (x)}{a^4}+\frac {b^3 \log (a+b x)}{a^4}-\frac {b^2}{a^3 x}+\frac {b}{2 a^2 x^2}-\frac {1}{3 a x^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(x^4*(a + b*x)),x]

[Out]

-1/3*1/(a*x^3) + b/(2*a^2*x^2) - b^2/(a^3*x) - (b^3*Log[x])/a^4 + (b^3*Log[a + b*x])/a^4

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^4 (a+b x)} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[1/(x^4*(a + b*x)),x]

[Out]

IntegrateAlgebraic[1/(x^4*(a + b*x)), x]

________________________________________________________________________________________

fricas [A]  time = 1.22, size = 54, normalized size = 0.96 \begin {gather*} \frac {6 \, b^{3} x^{3} \log \left (b x + a\right ) - 6 \, b^{3} x^{3} \log \relax (x) - 6 \, a b^{2} x^{2} + 3 \, a^{2} b x - 2 \, a^{3}}{6 \, a^{4} x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^4/(b*x+a),x, algorithm="fricas")

[Out]

1/6*(6*b^3*x^3*log(b*x + a) - 6*b^3*x^3*log(x) - 6*a*b^2*x^2 + 3*a^2*b*x - 2*a^3)/(a^4*x^3)

________________________________________________________________________________________

giac [A]  time = 1.07, size = 56, normalized size = 1.00 \begin {gather*} \frac {b^{3} \log \left ({\left | b x + a \right |}\right )}{a^{4}} - \frac {b^{3} \log \left ({\left | x \right |}\right )}{a^{4}} - \frac {6 \, a b^{2} x^{2} - 3 \, a^{2} b x + 2 \, a^{3}}{6 \, a^{4} x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^4/(b*x+a),x, algorithm="giac")

[Out]

b^3*log(abs(b*x + a))/a^4 - b^3*log(abs(x))/a^4 - 1/6*(6*a*b^2*x^2 - 3*a^2*b*x + 2*a^3)/(a^4*x^3)

________________________________________________________________________________________

maple [A]  time = 0.01, size = 53, normalized size = 0.95 \begin {gather*} -\frac {b^{3} \ln \relax (x )}{a^{4}}+\frac {b^{3} \ln \left (b x +a \right )}{a^{4}}-\frac {b^{2}}{a^{3} x}+\frac {b}{2 a^{2} x^{2}}-\frac {1}{3 a \,x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^4/(b*x+a),x)

[Out]

-1/3/a/x^3+1/2*b/a^2/x^2-b^2/a^3/x-b^3*ln(x)/a^4+b^3*ln(b*x+a)/a^4

________________________________________________________________________________________

maxima [A]  time = 1.35, size = 51, normalized size = 0.91 \begin {gather*} \frac {b^{3} \log \left (b x + a\right )}{a^{4}} - \frac {b^{3} \log \relax (x)}{a^{4}} - \frac {6 \, b^{2} x^{2} - 3 \, a b x + 2 \, a^{2}}{6 \, a^{3} x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^4/(b*x+a),x, algorithm="maxima")

[Out]

b^3*log(b*x + a)/a^4 - b^3*log(x)/a^4 - 1/6*(6*b^2*x^2 - 3*a*b*x + 2*a^2)/(a^3*x^3)

________________________________________________________________________________________

mupad [B]  time = 0.10, size = 48, normalized size = 0.86 \begin {gather*} \frac {2\,b^3\,\mathrm {atanh}\left (\frac {2\,b\,x}{a}+1\right )}{a^4}-\frac {\frac {a^3}{3}-\frac {a^2\,b\,x}{2}+a\,b^2\,x^2}{a^4\,x^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^4*(a + b*x)),x)

[Out]

(2*b^3*atanh((2*b*x)/a + 1))/a^4 - (a^3/3 + a*b^2*x^2 - (a^2*b*x)/2)/(a^4*x^3)

________________________________________________________________________________________

sympy [A]  time = 0.24, size = 44, normalized size = 0.79 \begin {gather*} \frac {- 2 a^{2} + 3 a b x - 6 b^{2} x^{2}}{6 a^{3} x^{3}} + \frac {b^{3} \left (- \log {\relax (x )} + \log {\left (\frac {a}{b} + x \right )}\right )}{a^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x**4/(b*x+a),x)

[Out]

(-2*a**2 + 3*a*b*x - 6*b**2*x**2)/(6*a**3*x**3) + b**3*(-log(x) + log(a/b + x))/a**4

________________________________________________________________________________________